import Vue from "vue"
import Vuex from "vuex" //cnpm install vuex --save
Vue.use(Vuex)

//引入自定义的模块
import users from "./modules/users"
import category from "./modules/category"
//实例化一个仓库
export default new Vuex.Store({
    modules: {
        users,
        category
    }
})